"""
3.2 条件判断—**逻辑运算符**
3.2.1 逻辑运算符
and：与
or：或
not：非
"""

# and,事例
age = 18
sex = "女"
if age >= 18 and sex == "女":
    print("成年女性")


age = 13
if age >= 18 and (sex == "女" or sex == "男"):
    print("成年人")
else:
    print("未成年人")

#不等于 nor
if age != 18:
    print("年龄不是18")

if not age == 18:
    print("年龄不是18")